package com.mobartisan.vehiclenetstore.network.service;

import com.mobartisan.vehiclenetstore.bean.UploadBeen;
import com.mobartisan.vehiclenetstore.network.BaseApiService;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * A REST interface describing how data will be synced with the backend.
 * <p>
 */
public class UserApiService extends BaseApiService {
    private static final String TAG = UserApiService.class.getSimpleName();

    private interface UserService {
        /**
         * 上传推送client_id
         *
         * @param
         * @return
         */
        @FormUrlEncoded
        @POST("updateClientId.htm")
        Observable<ResponseBody> upload(@Field("customerId") long customerId, @Field("clientId")String clientId);
    }

    protected static UserService service = getService(UserService.class);

    /**
     * 上传推送client_id
     *
     * @return
     */
    public static Observable<ResponseBody> upload(long customerId,String clientId) {
        return service.upload(customerId,clientId);
    }
}